<template>
  <div>
  </div>
</template>
<script>
  //数据跨域存储
  import CrossStorageClient from 'cross-storage'

  export default {
    data() {
      return {}
    },
    beforeCreate() {//beforeCreate创建前状态
    },
    mounted() {//mounted 挂载结束状态
      var that = this;
      that.$Spin.show();
      //  exitStatus  1 不显示退出
      sessionStorage.setItem("exitStatus", '0');
      var storage = new CrossStorageClient.CrossStorageClient(that.acrossDomains);
      storage.onConnect().then(function () {
        return storage.get('loginData');
      }).then(function (res) {
        sessionStorage.setItem("loginData", res)
        that.loadNav.loadNav();
        that.$router.push({
          path: "/"
        })
      })['catch'](function (err) {
        console.log('失败', err)
      });
    },
    methods: {}
  }
</script>
